/**
 * Created by Administrator on 2017/4/15.
 */
$(document).ready(function () {
    var list = '#selected-plays > li';
    $(list).addClass('horizontal');

    var notList = '#selected-plays li:not(.horizontal)';
    $(notList).addClass('sub-level');

    $('a[href^="mailto:"]').addClass('mailto');
    $('a[href$=".pdf"]').addClass('pdf-link');
    $('a[href^="http"][href*="henry"]').addClass('henry-link');

    $('a').filter(function () {
        return this.hostname && this.hostname !== location.hostname;
    }).addClass('external');
});